import request from "@/utils/request";
import { parseStrEmpty } from "@/utils/tetrabot";
/**
 * 查询巡检记录分页列表
 */
export function API_inspectrecordsList(query) {
  // let query;
  return request({
    url: "/task.result/exec.page.info.get",
    method: "get",
    params: query,
  });
}

/**
 * 巡检报告-巡检点维度分页查询
 */
export function API_pointpageInfoList(query) {
  // let query;
  return request({
    url: "/task.result/report.point.page.info.get",
    method: "get",
    params: query,
  });
}

/**
 * 巡检报告-id查询资源信息
 */
export function API_getResourceinfo(query) {
  // let query;
  return request({
    url: "/data.resource/resource.info.get",
    method: "get",
    params: query,
  });
}

/**
 * 巡检报告-巡检对象维度分页查询
 */
export function API_devictpageInfoList(query) {
  return request({
    url: "/task.result/report.device.page.info.get",
    method: "get",
    params: query,
  });
}

// 批量删除执行任务记录
export function delExecIds(execIds) {
  return request({
    url: "/task.result/exec.remove/" + execIds,
    method: "delete",
  });
}

/**
 * 巡检记录导出
 */
export function API_exportPdf(data) {
  return request({
    url: "/task.result/export.pdf",
    method: "post",
    data: data,
  });
}
/**
 * 巡检记录excel导出
 */
export function API_exportExcel(data) {
  return request({
    url: "/task.result/export.excel",
    method: "post",
    data: data,
  });
}
/**
 * 重新识别
 */
export function API_recognitionResult(query) {
  return request({
    url: "/task.result/recognition",
    method: "get",
    params: query,
  });
}
//甲烷遥测
export function API_methaneGet(query) {
  return request({
    url: "/task.result/methane.get",
    method: "get",
    params: query,
  });
}
